package f_string;

public class Substring {
	public Substring(){
		String birthday="880102";
		String year = birthday.substring(0, 2);
		String month = birthday.substring(2,4);
		String day = birthday.substring(4);
		
		System.out.println("year:" + year);
		System.out.println("month:" + month);
		System.out.println("day:" + day);
	}
	
	public static void main(String[] args) {
		new Substring();

	}

}
